<template>
  <section class="vision-section" id="vision">
    <div class="container">
      <div class="vision-content">
        <div class="vision-text">
          <h2 class="vision-title">
            <span class="title-main">正核博弈</span>
            <span class="title-subtitle">创新协作的未来</span>
          </h2>
          <p class="vision-description">
            我们相信，通过技术创新与深度协作，可以打破传统零和游戏的局限，
            创造社会财富的持续增长。正核博弈理念将重塑传统经济模式，让每个人的成功推动集体成功，
            为投资者创造前所未有的价值增长机会。
          </p>
          <div class="vision-stats">
            <div class="stat-item">
              <div class="stat-number">10万+</div>
              <div class="stat-label">目标学生用户</div>
            </div>
            <div class="stat-item">
              <div class="stat-number">1000+</div>
              <div class="stat-label">企业合作伙伴</div>
            </div>
            <div class="stat-item">
              <div class="stat-number">100亿+</div>
              <div class="stat-label">预期估值</div>
            </div>
          </div>
        </div>
        
        <div class="vision-visual">
          <!-- 太空轨道系统 -->
          <div class="space-orbit-system">
            <!-- 中心核心 -->
            <div class="central-core">
              <div class="core-inner">
                <div class="core-logo">智索真源</div>
                <div class="core-subtitle">正核博弈生态</div>
              </div>
              <div class="core-pulse"></div>
            </div>
            
            <!-- 四个角落节点 -->
            <div class="orbit-node node-education" @click="highlightNode('education')">
              <div class="node-glow"></div>
              <div class="node-icon">🎓</div>
              <div class="node-label">教育</div>
              <div class="node-metric">10万+学生</div>
            </div>
            
            <div class="orbit-node node-enterprise" @click="highlightNode('enterprise')">
              <div class="node-glow"></div>
              <div class="node-icon">🏢</div>
              <div class="node-label">企业</div>
              <div class="node-metric">1000+合作</div>
            </div>
            
            <div class="orbit-node node-society" @click="highlightNode('society')">
              <div class="node-glow"></div>
              <div class="node-icon">🌍</div>
              <div class="node-label">社会</div>
              <div class="node-metric">100亿+估值</div>
            </div>
            
            <div class="orbit-node node-technology" @click="highlightNode('technology')">
              <div class="node-glow"></div>
              <div class="node-icon">⚡</div>
              <div class="node-label">技术</div>
              <div class="node-metric">AI+区块链</div>
            </div>
            
            <!-- 连接线网络 -->
            <div class="connection-network">
              <svg class="connection-svg" viewBox="0 0 400 400">
                <!-- 中心到四个角落的连接线 -->
                <line class="connection-line line-1" x1="200" y1="200" x2="120" y2="120" />
                <line class="connection-line line-2" x1="200" y1="200" x2="280" y2="120" />
                <line class="connection-line line-3" x1="200" y1="200" x2="280" y2="280" />
                <line class="connection-line line-4" x1="200" y1="200" x2="120" y2="280" />
                
                <!-- 正方形边框连接线 -->
                <line class="connection-line line-5" x1="120" y1="120" x2="280" y2="120" />
                <line class="connection-line line-6" x1="280" y1="120" x2="280" y2="280" />
                <line class="connection-line line-7" x1="280" y1="280" x2="120" y2="280" />
                <line class="connection-line line-8" x1="120" y1="280" x2="120" y2="120" />
                
                <!-- 数据流动粒子 -->
                <circle class="data-particle particle-1" cx="160" cy="160" r="3" />
                <circle class="data-particle particle-2" cx="240" cy="160" r="3" />
                <circle class="data-particle particle-3" cx="240" cy="240" r="3" />
                <circle class="data-particle particle-4" cx="160" cy="240" r="3" />
              </svg>
            </div>
            
            <!-- 轨道粒子效果 -->
            <div class="orbit-particles">
              <div class="particle particle-1"></div>
              <div class="particle particle-2"></div>
              <div class="particle particle-3"></div>
              <div class="particle particle-4"></div>
              <div class="particle particle-5"></div>
              <div class="particle particle-6"></div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
</template>

<script>
export default {
  name: 'VisionSection',
  methods: {
    highlightNode(nodeType) {
      // 移除所有高亮
      document.querySelectorAll('.orbit-node').forEach(node => {
        node.classList.remove('highlighted')
      })
      
      // 添加当前节点高亮
      const node = document.querySelector(`.node-${nodeType}`)
      if (node) {
        node.classList.add('highlighted')
        
        // 3秒后移除高亮
        setTimeout(() => {
          node.classList.remove('highlighted')
        }, 3000)
      }
    }
  }
}
</script>

<style scoped>
.vision-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0A0E27 0%, #1A1F3A 50%, #2D3748 100%);
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 185, 174, 0.05) 0%, transparent 70%);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.vision-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  min-height: 600px;
}

.vision-text {
  color: #FFFFFF;
  padding-right: 2rem;
}

.vision-title {
  margin-bottom: 3rem;
}

.title-main {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00B9AE, #0066FF, #8A2BE2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
}

.title-subtitle {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.vision-description {
  font-size: 1.3rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4rem;
  max-width: 500px;
}

.vision-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
  min-width: 120px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00B9AE, #0066FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  line-height: 1.3;
}

.vision-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 2rem;
}

/* 太空轨道系统 */
.space-orbit-system {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto;
}

/* 中心核心 */
.central-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  z-index: 10;
}

.core-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0066FF, #8A2BE2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(0, 102, 255, 0.6);
  animation: smoothPulse 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes smoothPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 50px rgba(0, 102, 255, 0.6);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(0, 102, 255, 0.8);
  }
}

.core-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.core-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

.core-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border: 2px solid rgba(0, 102, 255, 0.3);
  border-radius: 50%;
  animation: smoothPulseRing 3s ease-in-out infinite;
}

@keyframes smoothPulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* 移除轨道环样式，使用固定位置布局 */

/* 轨道节点 */
.orbit-node {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  border: 2px solid rgba(0, 102, 255, 0.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  animation: nodeFloat 6s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.2);
}

@keyframes nodeFloat {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.2);
  }
  50% { 
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
  }
}

.orbit-node:hover {
  transform: translateY(-10px) scale(1.08);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.6);
  box-shadow: 0 20px 50px rgba(0, 102, 255, 0.5);
  animation-play-state: paused;
}

.orbit-node.highlighted {
  transform: translateY(-20px) scale(1.15);
  background: rgba(0, 102, 255, 0.25);
  border-color: rgba(0, 102, 255, 0.8);
  box-shadow: 0 25px 60px rgba(0, 102, 255, 0.7);
  animation-play-state: paused;
}

.node-education {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
  border-color: rgba(0, 185, 174, 0.4);
  box-shadow: 0 8px 32px rgba(0, 185, 174, 0.2);
}

.node-education:hover {
  border-color: rgba(0, 185, 174, 0.8);
  box-shadow: 0 20px 50px rgba(0, 185, 174, 0.5);
}

.node-enterprise {
  top: 20px;
  right: 20px;
  animation-delay: 1.5s;
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
}

.node-enterprise:hover {
  border-color: rgba(138, 43, 226, 0.8);
  box-shadow: 0 20px 50px rgba(138, 43, 226, 0.5);
}

.node-society {
  bottom: 20px;
  right: 20px;
  animation-delay: 3s;
  border-color: rgba(255, 107, 107, 0.4);
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.2);
}

.node-society:hover {
  border-color: rgba(255, 107, 107, 0.8);
  box-shadow: 0 20px 50px rgba(255, 107, 107, 0.5);
}

.node-technology {
  bottom: 20px;
  left: 20px;
  animation-delay: 4.5s;
  border-color: rgba(255, 193, 7, 0.4);
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.2);
}

.node-technology:hover {
  border-color: rgba(255, 193, 7, 0.8);
  box-shadow: 0 20px 50px rgba(255, 193, 7, 0.5);
}

.node-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  transition: all 0.3s ease;
}

.orbit-node:hover .node-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.node-label {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.node-metric {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.node-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* 连接线网络 */
.connection-network {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.connection-svg {
  width: 100%;
  height: 100%;
}

.connection-line {
  stroke: rgba(0, 102, 255, 0.4);
  stroke-width: 2;
  stroke-dasharray: 8, 4;
  animation: smoothDashFlow 4s linear infinite;
}

@keyframes smoothDashFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 24; }
}

.data-particle {
  fill: #00B9AE;
  animation: smoothParticleMove 6s ease-in-out infinite;
}

@keyframes smoothParticleMove {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% { 
    opacity: 1;
    transform: scale(1.2);
  }
}

.particle-1 {
  animation-delay: 0s;
}

.particle-2 {
  animation-delay: 1.5s;
}

.particle-3 {
  animation-delay: 3s;
}

.particle-4 {
  animation-delay: 4.5s;
}

/* 轨道粒子效果 */
.orbit-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: linear-gradient(45deg, #0066FF, #8A2BE2);
  border-radius: 50%;
  animation: smoothOrbit 15s linear infinite;
  opacity: 0.8;
}

.particle-1 {
  top: 15%;
  left: 15%;
  animation-delay: 0s;
}

.particle-2 {
  top: 15%;
  right: 15%;
  animation-delay: 3.75s;
}

.particle-3 {
  bottom: 15%;
  right: 15%;
  animation-delay: 7.5s;
}

.particle-4 {
  bottom: 15%;
  left: 15%;
  animation-delay: 11.25s;
}

.particle-5 {
  top: 50%;
  left: 10%;
  animation-delay: 1.875s;
}

.particle-6 {
  top: 10%;
  left: 50%;
  animation-delay: 5.625s;
}

@keyframes smoothOrbit {
  0% {
    transform: rotate(0deg) translateX(0px) rotate(0deg);
    opacity: 0.3;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: rotate(360deg) translateX(0px) rotate(-360deg);
    opacity: 0.3;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .vision-section {
    padding: 4rem 0;
  }

  .vision-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    min-height: auto;
  }

  .vision-text {
    padding-right: 0;
    order: 2;
  }

  .vision-visual {
    padding-left: 0;
    order: 1;
  }

  .title-main {
    font-size: 2.5rem;
  }

  .title-subtitle {
    font-size: 1.3rem;
  }

  .vision-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .vision-stats {
    justify-content: center;
    gap: 2rem;
  }

  .stat-item {
    text-align: center;
    min-width: 100px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .space-orbit-system {
    width: 350px;
    height: 350px;
  }

  .central-core {
    width: 80px;
    height: 80px;
  }

  .core-inner {
    width: 100%;
    height: 100%;
  }

  .core-logo {
    font-size: 0.8rem;
  }

  .core-subtitle {
    font-size: 0.6rem;
  }

  .orbit-node {
    width: 100px;
    height: 100px;
  }

  .node-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }

  .node-label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .node-metric {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }

  .node-glow {
    width: 120px;
    height: 120px;
  }

  .container {
    padding: 0 1rem;
  }
}
</style>
